package com.halobop.demo.admin.dto;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class UserLoginDto {

    @NotNull
    @Pattern(regexp = "^[1][3, 4, 5, 7, 8][0-9]{9}$")
    private String phone;

    @NotNull
    @Pattern(regexp = "^[^`~!@#$%^&*()_+<>?:\"{},\\\\.\\/;\'\\[\\]·！#￥（——）：；“”‘、，|《。》？、【】\\[\\]]{8,20}$")
    private String password;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "UserLoginDto{" +
                "phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
